package cn.edu.zhku.swagger.response;

public enum ResponseEnum {

    R_200(200, "操作成功"),
    R_400(400,"未验证"),
    R_401(401,"未授权"),
    R_403(403,"禁止访问"),
    R_404(404,"资源不存在"),
    R_408(408, "请求超时"),
    R_409(409, "操作失败/指令冲突"),
    R_500(500,"服务器内部错误");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }

}
